<?php

use App\Mini\MiniController;
use App\Mini\AuthController;
//小程序
Route::group(['prefix' => 'mini'], function () {
    //小程序使用code登录
    Route::post('login/{mini}/{code}', [AuthController::class, 'login']);
    Route::get('openid/{mini}/{code}', [AuthController::class, 'openid']);
    Route::apiResource('site.mini', MiniController::class)->shallow();
});
